# Contributor: Shyam Sunder <sgsunder1@gmail.com>
# Maintainer: Shyam Sunder <sgsunder1@gmail.com>
pkgname=ctop
pkgver=0.7.7
pkgrel=15
pkgdesc="Top-like interface for container metrics"
url="https://ctop.sh/"
license="MIT"
arch="all"
makedepends="go"
options="chmod-clean !check" # no test suite
source="$pkgname-$pkgver.tar.gz::https://github.com/bcicen/ctop/archive/refs/tags/v$pkgver.tar.gz"

export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

build() {
	make build
}

package() {
	install -Dm755 ctop "$pkgdir"/usr/bin/ctop
}

sha512sums="
9924c4dc5da489f90b029bc8060e759edf02a170e17bbc9f9c29b6536e5bc3e5eec69af829c7662a1f69cd331fc24022cae8b30e865a07742fd7e3623bc7f33f  ctop-0.7.7.tar.gz
"
